<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    for(var i=0;i<=100;i++){
      for(var j=0;j<=100;j++){
        for(var k=0;k<=100;k++){
          if(3 * i + 2 * j + k == 200 && i + j + k == 100){
            console.log('苹果:' + i + '个,鸭梨:' + j + '个,桃子:' + k + '个');
          }
        }
      }
    }
  </script>
</head>
<body>
  
  
</body>
</html>